package com.Singleton;

public class TestSingleton {
    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        System.out.println(instance);

        Singleton2 instance2 = Singleton2.getInstance();
        System.out.println(instance2);

        Singleton2 instance3 = Singleton2.getInstance();
        System.out.println(instance3);
        Singleton2 instance4 = Singleton2.getInstance();
        System.out.println(instance4);
    }
}
